ip link set can0 down
ip link set can0 type can bitrate 1000000
ip link set can0 type can loopback off
ip link set can0 up